home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 2003-11-20 | 1.3 KB | 47 lines |
- "FILE"="Xteq Systems X-Setup Plugin 6.0"
- "TYPE"="1"
- "COUNT"="1"
- "UIPATH 1"="Appearance\System\Command Prompt"
- "UIPATH 2"="Program Options\Built in Windows Apps\Command Prompt"
- "NAME"="CMD AutoRun"
- "OSVERSION"="0101011"
- "VERSION"="1.06"
- "LANGUAGE"="VBScript"
- "TEXT 1"="Command"
- "DESCRIPTION 1"="Enter a command you'd like to run automatically when launching CMD.EXE (Command Prompt)."
- "DESCRIPTION 2"="To execute more than one command, seperate the command using && (e.g. dir c:\&&dir e:\)
- "AUTHOR"="CptSiskoX"
- "CONTACTURL"="http://www.xteq.com"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"="Thanks to Pierre Szwarc for discovering this option! "
-
-
- sP1="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor\"
- sV1="Autorun"
-
- 'Called when the Plugin is started
- Sub Plugin_Initialize
- ' if RegPathExists(sP1) then
- s=RegReadValue(sP1 & sV1)
- SetUIElement 1,s
- ' else
- ' Disable
- ' end if
- End Sub
-
- 'Called when the Plugin should validate the Data the user has entered
- Sub Plugin_CheckData(ElementIndex)
- End Sub
-
- 'Called when the Plugin should apply the changes
- Sub Plugin_Apply(ElementIndex,ElementSubIndex)
- s=GetUIElement(1)
- Call RegWriteValue(sP1 & sV1,s,1)
-
- Call Restart()
- End Sub
-
- 'Called when the Plugin is about to be removed from memory
- Sub Plugin_Terminate
- End Sub
-